using System;
using DevFramework.Core.Entities;

namespace DevFramework.Entities.Concrete
{
    public class Product : IEntity
    {
        public virtual int ProductId { get; set; }

        public virtual string ProductName { get; set; }

        public virtual int? CategoryId { get; set; }

        public virtual string QuantityPerUnit { get; set; }

        public virtual decimal UnitPrice { get; set; }

        public virtual short? UnitsInStock { get; set; }

        public virtual byte[] Picture { get; set; }

        public virtual byte[] FileContent { get; set; }

        public virtual string Image64 { get { return Picture != null ? Convert.ToBase64String(Picture) : null; } }
    }
}